package com.ahaoyou.servicel.impl;

import com.ahaoyou.entity.User;
import com.ahaoyou.mapper.UserMapper;
import com.ahaoyou.servicel.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description
 * @Author LH
 * @Date 2021-09-26 16:29
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;


    @Override
//    @DataSource("tsdb")
    public List<User> findAll() {
        return userMapper.findAll();
    }
}

